package com.fh.mappers;

import com.fh.entity.po.Imgs;
import com.fh.entity.po.Shop;
import com.fh.entity.po.ShopValues;
import com.fh.entity.po.User;
import com.fh.entity.vo.ShopVo;
import com.fh.entity.vo.UserVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 描述:
 * Author:袁亚强
 * Date:2021/11/2511:35
 */
@Mapper
public interface ShopMapper {

    @Select("select * from t_shop where id =#{id}")
    Shop queryById(Integer id);


    void upShop(Shop shop);

    void addShop(Shop shop);

    int addShops(Shop shop);

    Integer queryCount(ShopVo shopVo);

    List<Shop> queryShopVo(ShopVo shopVo);

    List<Imgs> queryImgsById(Integer id);


    @Select("select valuess from t_shop_values where pid=#{id}")
    List<ShopValues> queryShopValuesById(Integer id);

    @Select("select valuess from t_shop_values where pid=#{id}")
    List<String> queryValuesByPid(Integer id);


}
